package com.itbac.redis_lock.lock;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/8/28 0:41
 */
public interface RedisLock {

    boolean tryLock(String key);

    void lock(String key);

    void lock(String key, long time);

    void unlock(String key);
}
